package com.learn.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * description: 读取Minio相关的参数
 */
@ConfigurationProperties(prefix = "minio")
//@Component //将我们加入到核心容器，我们才可以读取配置参数
@Data
public class MinioProperties {

    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;
//    private Integer urlExpiry;

    /*
         yaml              java         数据库
       bucket-name       bucketName    bucket_name
     */
}
